﻿<%@ Page Language="C#" MasterPageFile="~/Pages/MasterPage.master" AutoEventWireup="true"
    CodeFile="Home.aspx.cs" EnableEventValidation="true" Inherits="Pages_Default"
    Title="Trang Chủ" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #style1
        {
            width: 100%;
            float: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="san_pham_menu_top" class="sannpham">
        <p>
            SẢN PHẨM
        </p>
    </div>
    <div id="main_data">
        <asp:DataList ID="DTL_SP" runat="server" Width="550px" OnItemCommand="DTL_SP_ItemCommand">
            <ItemTemplate>
                <table id="style1" class="sannpham">
                    <tr>
                        <td height="182px" width="40%" >
                            <a href="Chitiet.aspx?mahh=<%#Eval("MaHang") %>">
                                <img src="<%# Eval("Images") %>" width="97%" class="sannphamimge" height="218px"/>
                                <%--<asp:Image CssClass="sannpham" ID="Image1" runat="server" Height="180px" ImageUrl='<%# Eval("Images") %>'
                                    Width="90%" BorderWidth="1px" />--%>
                            </a>
                        </td>
                        <td width="60%" height="120px" class="sannphamimge"
                            style="border-right:0px;"id="tensp" align="left" 
                            valign="top">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="Chitiet.aspx?mahh=<%#Eval("MaHang") %>">
                                <asp:Label runat="server" ID="Masp" Text='<%#Eval("MaHang") %>' Visible="false"></asp:Label>
                               <asp:Label runat="server" ID="Tensp" Text='<%#Eval("TenHang") %>'></asp:Label>
                            </a>
                            <a href='Chitiet.aspx?mahh=<%#Eval("MaHang") %>'>
                            <img align="right" src="../Images/Image_Pages/chitiet.jpg" class="sannpham" style="margin: 10px" 
                                 /></a>
                            <br /><br />
                           &nbsp;&nbsp; <h5 style="color: red; font-size: 11px; font-family: Times New Roman; text-decoration: underline;">
                                Mô tả :</h5>
                            <h6 style="color: Blue; font-size: 12px; font-family: Times New Roman;">
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("Mota") %>'></asp:Label>
                            </h6>
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <br />
                            <h5 style="color: red; font-size: 11px; font-family: Times New Roman;">
                                Giá : <b style="font-weight: bold; color: Blue;">
                                <asp:Label ID="giasp" runat="server" Text='<%# Eval("DonGia")%>' 
                                    Visible="false"></asp:Label>
                                <%# en.fomat(Eval("DonGia").ToString())%> </b>VND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nhóm hàng :
                                <a class="nhomsp" 
                                    href='TimKiem.aspx?key=<%# Eval("TenNhomHang")%>&amp;key1=<%=strten%>'>
                                <%# Eval("TenNhomHang") %></a></h5>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <cc1:CollectionPager ID="CollectionPager1" runat="server" BackText="« Trước" FirstText="Đầu"
            LabelText="Trang:" LastText="Cuối" NextText="Sau »" ResultsFormat="Kết quả từ {0}-{1} (của {2}) sản phẩm"
            ShowFirstLast="True" SliderSize="12" PagingMode="PostBack" BackNextDisplay="Buttons"
            BackNextLinkSeparator="·" HideOnSinglePage="True" IgnoreQueryString="False" PageNumbersDisplay="Numbers"
            PageSize="12" ResultsLocation="Top" SectionPadding="10" ShowLabel="True" ShowPageNumbers="True"
            UseSlider="True" BackNextLocation="Split" LabelStyle="" ControlStyle="background-color:White;color:blue;width:550px;"
            PageNumbersStyle="color:orange;font-size:13px;" PageNumberStyle="">
        </cc1:CollectionPager>
    </div>
</asp:Content>
